package org.realteam.iframework.json.beans;

import net.sf.json.JSONFunction;

/**
 * @author zhangxf
 * @version 1.0
 * @create on : 2012-2-14 下午02:37:35
 * 
 */
public class MyBean {
	
	private String name = "json";
	
	private int pojoId = 1;
	
	private char[] options = new char[] { 'a', 'f' };
	
	private String func1 = "function(i){ return this.options[i]; }";
	
	private JSONFunction func2 = new JSONFunction(new String[] { "i" }, "return this.options[i];");

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPojoId() {
		return pojoId;
	}

	public void setPojoId(int pojoId) {
		this.pojoId = pojoId;
	}

	public char[] getOptions() {
		return options;
	}

	public void setOptions(char[] options) {
		this.options = options;
	}

	public String getFunc1() {
		return func1;
	}

	public void setFunc1(String func1) {
		this.func1 = func1;
	}

	public JSONFunction getFunc2() {
		return func2;
	}

	public void setFunc2(JSONFunction func2) {
		this.func2 = func2;
	}

}
